Indexing Menu

For each instance of the pattern found, a menu of options such as the following may be presented.